'use strict';

function spilt_to_zero(number, interval) {
  //在这里写入代码
  let arr=[];
  if(number%interval===0)
  {
    for(let i=0;i<=number/interval;i++)
    {
    
      arr.push(parseFloat((number-interval*i).toFixed(1)));
    }
  }
  else
  {
    for(let i=0;i<=(number/interval)+1;i++)
    {
      arr.push(parseFloat((number-interval*i).toFixed(1)));
      
    }

  }
  return arr;
}

module.exports = spilt_to_zero;
